package com.example.usermanage.mapper;

import com.example.usermanage.model.Userinfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    Userinfo login(String username, String password);

    int insert(Userinfo userinfo);

    List<Userinfo> listAll();

    List<Userinfo> listAllPlus();

    Userinfo selectUpdate(Integer id);

    int update(Userinfo userinfo);

    int delete(Integer id);
}
